﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="misSub.aspx.cs" Inherits="pro_mis_misSub" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>专家：提交任务</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            <div id="level">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                    SelectCommand="SELECT levelmission.levelmissionid, levelmission.actor, levelmission.actorroleid, levelmission.projectid, levelmission.type, levelmission.state, project.projectname FROM levelmission INNER JOIN project ON levelmission.projectid = project.projectid WHERE (levelmission.actor = @username) AND (levelmission.state = @state)">
                    <SelectParameters>
                        <asp:SessionParameter Name="username" SessionField="username" />
                        <asp:Parameter DefaultValue="在做的" Name="state" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <div>
                    在评等级任务：</div>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" 
                    ForeColor="#333333" GridLines="None" PageSize="5" Width="100%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                            SortExpression="projectname" />
                        <asp:BoundField DataField="type" HeaderText="类型" SortExpression="type" 
                            ItemStyle-Width="70px" >
<ItemStyle Width="70px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state" 
                            ItemStyle-Width="70px" >
<ItemStyle Width="70px"></ItemStyle>
                        </asp:BoundField>
                        <asp:HyperLinkField DataNavigateUrlFields="levelmissionid" 
                            DataNavigateUrlFormatString="levelSubmit.aspx?levelmissionid={0}" HeaderText="提交" 
                            Text="&lt;img src='../../images/submit.gif' alt='提交' /&gt;" 
                            ItemStyle-Width="65px" >
<ItemStyle Width="65px"></ItemStyle>
                        </asp:HyperLinkField>
                    </Columns>
                    <PagerStyle ForeColor="#003399" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        您当期啊还没有没有可提交的评级任务哦。
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>  
            </div>
            <hr />
            <div id="weight">
                <div>
                    在评权重任务：</div>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                    
                    SelectCommand="SELECT weightmission.weightmissionid, weightmission.weightmissionname, weightmission.weightmissiontype, weightmission.actor, weightmission.projectid, weightmission.state, weightmission.description, project.projectname, project.weighttype FROM weightmission INNER JOIN project ON weightmission.projectid = project.projectid WHERE (weightmission.actor = @username) AND (weightmission.state = @state) AND (project.weighttype &lt;&gt; '直接赋权')">
                    <SelectParameters>
                        <asp:SessionParameter Name="username" SessionField="username" />
                        <asp:Parameter DefaultValue="在做的" Name="state" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" DataKeyNames="weightmissionid" 
                    DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None" PageSize="5" 
                    Width="100%">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                            SortExpression="projectname" />
                        <asp:BoundField DataField="description" HeaderText="描述" 
                            SortExpression="description" />
                        <asp:BoundField DataField="weightmissiontype" HeaderText="任务类型" 
                            SortExpression="weightmissiontype" ItemStyle-Width="70px" >
<ItemStyle Width="70px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state" 
                            ItemStyle-Width="65px" >
<ItemStyle Width="65px"></ItemStyle>
                        </asp:BoundField>
                        <asp:HyperLinkField DataNavigateUrlFields="weightmissionid" 
                            DataNavigateUrlFormatString="weightSubmit.aspx?weightmissionid={0}" HeaderText="提交" 
                            Text="&lt;img src='../../images/submit.gif' alt='提交' /&gt;" 
                            ItemStyle-Width="60px" >
<ItemStyle Width="60px"></ItemStyle>
                        </asp:HyperLinkField>
                    </Columns>
                    <PagerStyle ForeColor="#003399" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        您当前还没有可提交的评权任务哦。
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </div>
        </div>
    
    </div>
    </form>
</body>
</html>
